/**
 * @(#)WeixinLoginRecord.java
 * @author zhangy
 * @version 1.0 2015-12-4
 * <p>
 * Copyright (C) 2000,2015 , KOAL, Inc.
 */
package com.maigao.core.login.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author awei
 * @description:
 * @date 2022/5/19 10:29 下午
 */
@Data
public class WeixinLoginRecord extends BusinessObject {

    private static final long serialVersionUID = 1L;

    private String openId;

    private String session_key;

    private String expires_in;

    private String access_token;

    private String nickName;

    public static final String ACCESS_TOKEN = "access_token";

    public static final String EXPIRES_IN = "expires_in";

    public static final String OPENID = "openid";

    public static final String SESSION_KEY = "session_key";

    public static final String REFRESH_TOKEN = "refresh_token";

    public static final String SCOPE = "scope";

    public static List<String> tokenList = null;

    static {
        tokenList = new ArrayList<String>();
        tokenList.add(ACCESS_TOKEN);
        tokenList.add(EXPIRES_IN);
        tokenList.add(OPENID);
        tokenList.add(REFRESH_TOKEN);
        tokenList.add(SCOPE);
        tokenList.add(SESSION_KEY);
    }

    public static final String NICKNAME = "nickname";

    public static final String SEX = "sex";

    public static final String PROVINCE = "province";

    public static final String HEADIMGURL = "headimgurl";

    public static final String UNIONID = "unionid";

    public static List<String> urlInfoList = null;

    private String province;

    private String headImgUrl;

    private Integer sex; // 1.男

    private String unionid;

    static {
        urlInfoList = new ArrayList<String>();
        urlInfoList.add(NICKNAME);
        urlInfoList.add(SEX);
        urlInfoList.add(PROVINCE);
        urlInfoList.add(HEADIMGURL);
        urlInfoList.add(UNIONID);
    }


}


